<?php
namespace app\frontend\forms\elements;

use Phalcon\Tag;
use Phalcon\Forms\Element\Select;
use Phalcon\Forms\Element\Radio;

class RadioList extends Select
{
    public function render($attributes=null){
        $options = $this->getOptions();
        $attributes = $this->prepareAttributes();
        $html = '';
        foreach($options as $key=>$option){
            $attributes['value'] = $key;
            $html.=Tag::radioField($this->prepareAttributes());
            $html.='<p>‘.$option.’</p>';
        }
    }
}